package com.xq.spring.container;

import org.springframework.context.ApplicationEvent;

/**
 * 容器事件类,必须继承自ApplicationEvent.
 * 
 * @author 郭凯强
 */
public class ContainerEvent extends ApplicationEvent {
	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = -7158646761261018134L;
	/**
	 * 事件名称
	 */
	private String name;

	public ContainerEvent(Object source) {
		super(source);
	}

	public ContainerEvent(Object source, String name) {
		super(source);
		this.name = name;
	}

	public String getName() {
		return name;
	}

	/**
	 * 设置事件名称
	 * 
	 * @param name
	 *            事件名称
	 */
	public void setName(String name) {
		this.name = name;
	}

}
